1. problem while copying class file coderanch.comhi all, i am new to tomcat server. i have small problem of copying class files from bin to classes folder. i have read that after compiling the java file it shud be moved to %TOMCAT_HOME%/webapps/examples/WEB-INF/classes. I have done this using copy command at command line as below c:\jakarta-tomcat-3.2.2\bin\ copy Helloworld.class c:\jakarta-tomcat-3.2.2\webapps\examples\classes but 0 files are copied. but the class file ... |
2. Question about deploy my class file? coderanch.com |
3. If there is output in Class file then how can i take this out put on Browser coderanch.comYou have two options, 1) you can get the method to return the data as a String to the Servlet and get the servlet to write it to the client or 2) you can pass the PrintWriter or OPutputStream to the second class and get it write its own output to the client. I tend to prefer option 1, since option ... |
4. How Java handles class files? coderanch.comThe only way to have different versions of a class file is to have each one located in a separate directory. So in your example above, when you copy the new class file to the location of the old one, the old "version" is gone. Layne p.s. A class file does NOT contain objects. It only contains a class (or perhaps ... |
5. java .class file dcompilation coderanch.com |
6. open a .class file and copy to .java file coderanch.comHi, I need your experts advice on something that I am doing now. I want to open a file which is in .class format using DJ Decompiler and copy the file into a java file using java program. Actually I want to get the directory as input and do this for all the files and files inside all the directories. How ... |
7. class files coderanch.com |
8. class file bytes from Class? coderanch.com |
9. .class file problem coderanch.comi have .class file which is compiled on solaris with may be different version of jvm. i have decompiled the .class file on windows using decompiler when i try to complie this file again using jvm 1.4 .6 on windows i get compilation errors. what can be the reson for this...i hope this is not enviornment problem... please help me out!!! ... |
10. Question on class files coderanch.comHi friends , I have a question in mind.. Lets say we have a.java and when i compile it it generates an a.class file. Now for some reason a.java files gets deleted but a.class file is still there. And my application calls a page where a.java is required , as a.java is not there but its class file is. So will ... |
11. Getting information about where class file is stored based on object coderanch.comHi all Is it possible to retrive information about where class file is stored in my system\computer based on Object reference.. I mean i am having an object say "Student" through java program i should print where exactly that Student.java file is placed in my system like C:\javaprgs\Student.java Is it possible to do so?... |
12. class file coderanch.comone month back i attend one interview.. that guy asked what does a class file consists of.. i replied " i dont know", he told that class file consists of byte code, i asked him.. then what interpreter do.. he replied ,it converts the class file into byte code, then again i asked ,already the class file consists byte code.. then ... |
13. running .class files coderanch.com |
14. How to find all imported classes in java file? coderanch.comI am working on a big application. In that application there are many packages and each packages have many java files. I want to compile a single java file that has many dependants classes in application.I want to make a jar file of all the dependant classes. How can i know how many dependant classes are there for java file??? For ... |
15. business logic in class file coderanch.comWelcome to the Ranch. Whoever programmed that file ought to have put documentation comments in it, and there ought to be html files corresponding to your .class files, and they ought to explain the logic of the class. Failing that, do a search through these boards for "decompiler" or "JAD," because this sort of question comes up about twice a month ... |
16. changing the main class hardcoded values programatically with out extra file coderanch.comIam having only one main class and I've hardcoded the values like password in the main class file.Then we are giving the option of changing password for the user. The obvious way is to change the value of password variable ,but it works for that instance of running program. There are ways like configuaration files,Serialization .But they create one more extra ... |
17. Replace Class Files coderanch.comHi, When I replace the class and java files using browse button existing screen details should be changed with other details. I planed to do like the following method, please reply this method is the correct way or not: "First I design the Screen with changes details using java then I will get that file using browse button in existing Screen(existing ... |
18. How To edit/replace .class file? coderanch.comhi the program has over 99 .class files. i want to edit the ABOUTform to add a little detail on it and some changes.. what should i do about it? i already decompiled all files and edited the target area but i dont know what to do next.. do i need to recompile it again or something.. what tools do i ... |
19. About .class files coderanch.com |
20. Is there away I can have two or more classes in same file? coderanch.comyes Mr. Mehata, you could have, but make sure there will be only one public class with in each source file. If you look at Inheritance or composition you will get your answer. Examle: import java.util.*; class Tree { int height; Tree() { prt("Planting a seedling"); height = 0; } Tree(int i) { prt("Creating new Tree that is " + i ... |
21. icon for a class file coderanch.com |
22. File class questoin coderanch.comHi My friends: I am trying to use JAVA file class to create a directory and file using following code in windows ME environment. The compile is ok, but it looks like both directory and file were not created. Could you please tell me the reason. Thank you Haijun import java.io.*; public class TryFile { public static void main (String [ ... |
23. Class file and File having extension bin coderanch.comA binary executable, such as java.exe and javac.exe, would be put in the \bin directory, and that directory should be in your path statement. Was the file that you downloaded INTENDED to be unzipped? As a rule class files should be in some directory that is named in your classpath, so that any application can use them. There are decompilers availabe ... |
24. Dynamic change of a class file coderanch.com |
25. decoding abc.class file coderanch.com |
26. Using a class in another file coderanch.comI have a storage class with get and set methods, an instance of which is created in another file, like so: FootballData myFootballData = new FootballData(); This is in gaa.java. In the same direcory is FootballData.java, the storage class: public class FootballData { String date; String month; String year; public FootballData() { } public void setDate(String tmp) { date = tmp; ... |
27. turn my class file into an icon to click coderanch.com |
28. Head First and I Can't make a .class file? coderanch.comHi: Just bought Head First Java and a new Dell Infinion running XP home edition v5.1 service Pack1. I downloaded the J2SDK1.4.2 and installed it (and downloaded the documentation files as recommended). I think I unzipped the source file - but I'm not sure. All the files look like they are in the right place...c:\j2sdk1.4.2\bin\javac etc. Now when I try the ... |
29. main class file coderanch.comhello arnab, welcome to the ranch. using the public keyowrd for a class makes that class visible to every other class in any other package. if you use the public keyword there can only be one public class in one file so this is allowed; saved as A1.java public class A1 { //code } class a2 { //code } //but this ... |
30. problem with .class file creation coderanch.com |
31. include class in other file? coderanch.com |
32. How Can I reverse - Engineer a .class file to a .java file? coderanch.com |
33. Confused on the idea of a Class file. coderanch.comOkay, I am lost about a class file. I need to write a program that uses two Class files. So, the class file is seperate from my .java file then? Any links to this concept would be appreciated... The school book and course module seem to just confuse me even more... Thanks, Pete |
34. go back to top of class and write/read to file coderanch.comI was wondering if i could take this code and at the end of if(deposit.equals("y") statement whether or not it is possible to start over at the top of the class (and still keep the new balance). Also, is it possible to get the current balance from a file and then save it to the file when im done with the ... |
35. I cant open my .class files coderanch.com |
36. Question about debugging .class file coderanch.comHello everyone, When debugging a C or C++ binary file, the file is different from the release version of binary file (debug version binary file is larger). My question is, if we want to debug a Java binary file (.class file), is the version of file (which we use to debug) the same as the file (which we are going to ... |
37. Java-5 does not allow me to create a class file-why? coderanch.comWith Java-4 (jdk2sdk1.4.1.02) I was always able to create a class file using: C:\Java-CK\>javac d C:\Java-CK HelloDate.java and I would get a file called HelloDate.class. and I would be able to run this short program. I am trying to do the same with Java-5 (jdk1.5.0_04) and it does not work. It always gives me the following error message: -Javac is not ... |
38. Help With File Class coderanch.com1. This is a Java Greenhorn thing, but you should not compare strings with == or !=, because that is checking if they are the *same* string, versus being *equal* strings (contains the same list of characters), So: if (string1 == string2) //bad if (string2 != string2) //bad if (string1.equals(string2)) //good if (!string1.equals(string2)) //good 2. A file is identified by its ... |
39. How to get .java file from .class file? coderanch.com |
40. will my linux class files work on solaris coderanch.comHi, I have a small doubt, i create an application on a windows platform and compile on the same platform. Do i need to compile my files on the linux or solaris platform if i port them to linux/solaris.Or can i use them as such. How does the compilation work for different OS's/Platforms |
41. 2 classes in one file. Is that possible? coderanch.comWell it's just for the sake of knowing. I know that if there is only one class called Foo, therefore we have to name the file Foo.java. So I wanted to know if putting two or more classes in one file is possible and how should I name the file as I know that if a file contain only one class, ... |
42. For running .class file what we require ? coderanch.com |
43. I can not find the class file coderanch.comHi, I downloaded a dtdparser to use it in my programs .And it had a sample program with it and the thing is when i try to write"Z:\java Files\java com.wutka.dtd.Tokenize test.dtd" it works althoug i removed the jar file for the parser from the working directory "java files " and i do not know where the source of the file is ... |
44. class file viewer coderanch.com |
45. Given a class file, which JDK was used? coderanch.comA quick way to get this info is with the javap tool (which comes with the JDK): javap -verbose MyClass gives you something like: Compiled from "MyClass.java" class MyClass extends java.lang.Object SourceFile: "MyClass.java" minor version: 0 major version: 49 Constant pool: [...] The major and minor version are what you want. These are described in the link Joe gave, specifically in ... |
46. javadoc using class files coderanch.com |
47. Grouping small classes in one file coderanch.com |
48. class file portability coderanch.comI had thought that the .class file one created after compiling a piece of java code was supposed to run under a different operating system. I tested this with some simple java code public class HelloWorldApp { public HelloWorldApp() { } public static void main(String[] args) { System.out.println("Hello World!"); } } I compiled it to a .class file on my home ... |
49. Finding what class files are being used coderanch.comHi all Recently our custmomer wanted some new functionality added. This functionality was coded within within the project and was going to be deployed next time we pushed the build. They just decided they needed it right away. Pushing the build early is not possible since this would affect a lot of our developers in mid work. I basically wrote up ... |
50. class file is not reflected coderanch.com |
51. multiple classes in a single file coderanch.com |
52. no xxx.class file coderanch.comDear Friends I am new in Java. I use TextPad to write the code & I save in a folder. Before when I used to save the source code with one name, with the same name it would creat a class file after compilation. But now this class file is not creating & showing so many errors. Is it Classpath problem ... |
53. Cannot Find Class File.... coderanch.comDear Forum Members.... 1) I am still having problem compiling the .java files not residing in the Bin directory. The compiler is not able to find any .java file that is outside the bin directory. I have JVM installed in C:\jdk1.3\bin> and I want to keep all my .java files in C:\jdk1.3\bin\samples> Could you please tell me what exactly should I ... |
54. Use of File Class... coderanch.comPriya... , Welcome to JavaRanch! We're pleased to have you here with us , but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policyand adjust your display name to match it. In particular, your display name must be a first and a last ... |
55. Weird message when running class file coderanch.com |
56. how to covert .class to .java file coderanch.com |
57. Create Java File From Class File coderanch.com |
58. Creating files using Class file coderanch.com |
59. can a class or a java file have more than one "main "method? coderanch.comOriginally posted by tomendra singh: yes people i am curious to know this thing that, can a class or a java file have more than one "main "method? if you have "yes answer", please provide me how(only the way,no need of exact code), and tell me also that how it is possible while i have read in many books that a ... |
60. Where's that _skel.class file? coderanch.comI'm trying to generate stub and skeleton files for my remote service, but all I'm getting is the stub file. I know that there's some option to not generate skeleton files, but I'm just using plain %rmic |
61. Class file not getting created coderanch.comHi all, I am a beginner to java and I am not able to compile a program. My "path" variable has been set to: C:\Program Files\Java\jdk1.6.0_10\bin My "classpath" variable has been set to: C:\Program Files\Java\jdk1.6.0_10\bin My program is also available in bin folder shown above. I executed javac compile command and my program compiled successfully. My CLASS file is not getting ... |
62. Retrieving information of a class from a class file coderanch.comHi guys, I chose 'Test Automation' as my final year project. My idea is to get a class file as the input from the user (like file attachment) and displaying all the methods in the class which asks for test data as arguments. I know we can retrieve class objects through Reflection API and it is not possible to use with ... |
63. Are java .class files interchangeable? coderanch.comI've got to hack an application we are using because I have to integrate this high speed file transfer protocol not supported in our current version, but it is in the next version but for some reason upgrading to that next version is a nightmare so I'm tasked with hacking away. fun. Short synopsis of the environment: WebObjects framework deployed to ... |
64. 32 bit class file on 64 bit runtime coderanch.comThanks Campbell, I sort of agree , but then . I am trying to deploy a webservice using Axis 1.4 and Sun jdk 5 , when i trying deploying it on 64 bit jvm i get the following error stack trace 20:54:53,210 ERROR [[AxisServlet]] Servlet.service() for servlet AxisServlet threw exception java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:177) at java.security.AccessController.doPrivileged(Native Method) ... |
65. how to output -verbose:class info to a file? coderanch.com |
66. doubt in class file coderanch.com |
67. Multiple class files or one sigle one! Which is better? coderanch.comhi just a quick question, I've just had to move some of my ActionListerners into the same file as my Main class to get my program to work (they needed to refrence the same global varible). My projects now working again but i was just wondering, is it better to have just one big class file or split the program into ... |
68. Is possible to write Class object to .class file? coderanch.comWelcome to JavaRanch. You can only create Class objects for classes that have already been loaded, so there must be a class file for them already. (Unless the class is created dynamically using a library like Javassist or BCEL, but those APIs offer a way of writing a class file to disk.) What prompted this question? |
69. Need help on File class coderanch.compackage assignment; import java.io.File; public static void main(String arg[]){ File f1=new File("C:/test.txt"); System.out.println("File name :"+ f1.getName()); f1.renameTo(new File("C:/test1.txt")); System.out.println(("File name :"+ f1.getName()); } } hello guys, In the above code all are working fine. I just created a file "test.txt" and the rename the file by using the "renameTo()" method. I printed the name of the file by invoking the "getNme()" ... |
70. calling java class file from javascript coderanch.com |
71. how to register a java class file for com coderanch.comI want to register a java class file in windows system registry and use it for mirc Com object. Since the tool JavaReg is obsolete and not safe , I am not able to register the class file in windows system registry. Mirc chat client has a Com feature so that we can use java or other oops programming languages for ... |
72. how many class files have you written ? coderanch.comIts a bit of an odd question. Unless you are a student just starting out, the answer is liable to be in the thousands (if not tens of thousands). Not sure what you gain by asking it either - its perfectly possible to have written written loads of classes - all of them poorly. |
73. how to write affective comments in java class file? coderanch.comActually I was talking about consumers of the library. That does mean other developers. Then again, I was also talking only about (public / protected) Javadoc comments. For your information, I usually write Javadoc comments for everything; from private to public, from fields to nested classes to outer classes. Comments on how a method work should be contained inside the method, ... |
74. Getting Exception while running a class file. coderanch.com |
75. Is it possible to perform reverse process in recompiling .class files? coderanch.com |
76. Running a .class file coderanch.comI am just learning Java and ran into something that made me curious. It started as a funny error that kept popping up every time I tried to run something I just compiled. I would type "java program.class" and get a funny class not found error. I looked up ther error, checked my class path and kept having problems. I eventually ... |
77. Passing values between classes in two separate files coderanch.comSo I'm using two separate files for the first time and seem to be having trouble passing the values. The program should add, subtract, multiply, and divide fractions printing the inputted fractions and the result. The two files are as follows: import java.util.Scanner; public class P4 { public static void main(String [] args) { int numer1, denom1, numer2, denom2;// char ... |
78. How to wrap up .class file coderanch.comhello ranchers i am an engineering student. I am developing a software in Java Swing which i want to sell it to a client.I have written all the source code.I have put the .class files in one folder The problem is that i don't know to wrap it up and give the complete set up to the client so that he ... |
79. It is indirectly referenced from required class file coderanch.com |
80. How to turn a class into an executable file coderanch.comI have this class, and for practice I'd like to turn it into a file where you do not have to open a Java IDE to run it, or an executable file (I think that is what I'm trying to go for). import javax.swing.JOptionPane; public class Addition{ public static void main ( String args[] ) { String firstNumber; String secondNumber; int ... |
81. class library files - where are they? coderanch.comWhen I install java sdk on my pc, where do the class library files reside? I'm trying to begin using a java library called lucene. Have downloaded the library but now unsure where it exactly goes. My simple program that expects to use classes from the lucene library shows many java errors in Eclipse such as; "field cannot be resolved to ... |
82. Two classes in one file coderanch.comclass ValHold{ public int i = 10;} public class ObParm{ public static void main(String argv[]){ ObParm o = new ObParm(); o.amethod(); } public void amethod(){ int i = 99; ValHold v = new ValHold(); v.i=30; another(v,i); System.out.print( v.i ); }//End of amethod public void another(ValHold v, int i){ i=0;\ v.i = 20; ValHold vh = new ValHold(); v = vh; System.out.print(v.i); ... |
83. from class to java file coderanch.comHi , i am loading classes from API jars, and according to these classes ( reflection ) i am using javassist to create new classes files, write them to the file system using writeFile() method , the thing is i need .java files in order to manually edit these new classes. does any body know if i can make java file ... |
84. .class file execution coderanch.com |
85. Using Method from other class as if it were in same .class file coderanch.com |
86. Doubt in a method of File class coderanch.com |
87. Class file not being made coderanch.comHello All, I have just installed Java and am trying to get it setup. I've set the following as the Environment variables PATH is C:\Program Files\Java\jdk1.6.0_24\bin CLASSPATH is C:\Program Files\Java\jdk1.6.0_24\jre\bin I can run javac and my program compiles. I can run javac and see all the options. But no class file is being created. I'm using Windows 7 64 bit, i've ... |
88. How many classes can be in one .java file? coderanch.comI'm a software system engineer by schooling, training and work experience. I am not a programmer, I work at protocol level not language. I decided to teach myself Java so I would be a better software system engineer, which is how and why I obained the book, "Head First Java". With that said, I'm going through each example in the book ... |
89. how to open .class file coderanch.com |
90. not able to call the class file? coderanch.comhere is my jsp code: <%@page contentType="text/html" pageEncoding="UTF-8"%> |
91. functions inside .class file coderanch.com |
92. Defining classes in different files coderanch.com |
93. Writing logs to a single file from Multiple Classes coderanch.comHi, I have created a CustomLogger class where I am adding file handler stuff to the default Logger. I want to use this logger into rest of my application. When I am using this logger from two different classes, two log files are generated: - ApplicationLog.log - ApplicationLog.log.1 I want the logs to be written in a single file. Is this ... |
94. Write in a .csv file and generate .class file on the fly coderanch.comHello , I have a requirement that user writes some thing in a comma separated file e.g. write, Hello world and I want an equivalent .class file generated out of it having a processing logic that goes some thing like, -accept data from above file -parse them -create a file with .java extension -write a class template write public static void ... |
95. How to schedule a class file for daily exection dbforums.com |
96. Decompling class files java-forums.orgHi I recently lost my project's source files but I have the class files from unzipping the jar file. I was wondering does anyone know how to decompile the class files to get the java files? Edit: The javap says: ERROR:Could not find |
97. How do you refere to a class Instance from another java file? java-forums.orgsry, this is what I ment: I got a class named "GameFrame" in one .java file (call it java file 1) In that java file theres also a class called "run" The run class creates an Instance of the GameFrame class by doing: GameFrame window = new GameFrame(); Then I got another .java file (call it java file 2) that I ... |
98. Use an internal Method or Make a class file? java-forums.orgI have a simple math function that needs to be done several times in my program. When is it better to make it just a method to be called in the program and when is it better to make it a new class file to be included in the project? I am thinking that if its something you might like to ... |
99. need help.. java class file... java-forums.orghey... i just started learning java... i need a sample program involves only using java class files.. program that contain the uses of inheritance, user define package, looping statements, method overloading, constructor overloading, exception handling, branching statements(if,switch), array, objects and classes, ie only the basic... just a simple java class program... like for example, a program to show process of buying ... |
100. file $1.class java-forums.org |